package Day9;

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改
/**
 * 2021Java真题:3 的倍数
 * https://www.lanqiao.cn/problems/2371/learning/
 */
public class Main3 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if((a + b) % 3 == 0){
          System.out.println("yes");
        }else if((a + c) % 3 == 0){
          System.out.println("yes");
        }else if((b + c) % 3 == 0){
          System.out.println("yes");
        }else{
          System.out.println("no");
        }
        scan.close();
    }
}